<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class AuthorizeNetAIM</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class AuthorizeNetAIM</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
											<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
						
			</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Builds and sends an AuthorizeNet AIM Request.</p>
		<p class="notes">
			Located in <a class="field" href="_lib---AuthorizeNetAIM.php.html">/lib/AuthorizeNetAIM.php</a> (line <span class="field">42</span>)
		</p>
		
				
		<pre><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html">AuthorizeNetRequest</a>
   |
   --AuthorizeNetAIM</pre>
	
			</div>
</div>


	<a name="sec-const-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constant Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Constants</span> (<a href="#sec-consts">details</a>)
												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<div class="const-summary">
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#LIVE_URL" title="details" class="const-name">LIVE_URL</a> = 					<span class="var-type"> 'https://secure.authorize.net/gateway/transact.dll'</span>

				</div>
								<div class="const-title">
					<img src="../../media/images/Constant.png" alt=" " />
					<a href="#SANDBOX_URL" title="details" class="const-name">SANDBOX_URL</a> = 					<span class="var-type"> 'https://test.authorize.net/gateway/transact.dll'</span>

				</div>
							</div>
		</div>
	</div>

	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
					</div>
		<div class="info-box-body">
			<div class="var-summary">
																								<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$verify_x_fields" title="details" class="var-name">$verify_x_fields</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																																												
												<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#addLineItem" title="details" class="method-name">addLineItem</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$item_id</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$item_name</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$item_description</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$item_quantity</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$item_unit_price</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$item_taxable</span>)
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetAIM/AuthorizeNetAIM_Response.html">AuthorizeNetAIM_Response</a></span>
										<a href="#authorizeAndCapture" title="details" class="method-name">authorizeAndCapture</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$amount</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$card_num</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$exp_date</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetAIM/AuthorizeNetAIM_Response.html">AuthorizeNetAIM_Response</a></span>
										<a href="#authorizeOnly" title="details" class="method-name">authorizeOnly</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$amount</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$card_num</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$exp_date</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetAIM/AuthorizeNetAIM_Response.html">AuthorizeNetAIM_Response</a></span>
										<a href="#captureOnly" title="details" class="method-name">captureOnly</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$auth_code</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$amount</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$card_num</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$exp_date</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetAIM/AuthorizeNetAIM_Response.html">AuthorizeNetAIM_Response</a></span>
										<a href="#credit" title="details" class="method-name">credit</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$trans_id</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$amount</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$card_num</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetAIM/AuthorizeNetAIM_Response.html">AuthorizeNetAIM_Response</a></span>
										<a href="#priorAuthCapture" title="details" class="method-name">priorAuthCapture</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$trans_id</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$amount</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setCustomField" title="details" class="method-name">setCustomField</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setCustomFields" title="details" class="method-name">setCustomFields</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$fields</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setECheck" title="details" class="method-name">setECheck</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$bank_aba_code</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$bank_acct_num</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$bank_acct_type</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$bank_name</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$bank_acct_name</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$echeck_type</span> = <span class="var-default">'WEB'</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setField" title="details" class="method-name">setField</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setFields" title="details" class="method-name">setFields</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$fields</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#unsetField" title="details" class="method-name">unsetField</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetAIM/AuthorizeNetAIM_Response.html">AuthorizeNetAIM_Response</a></span>
										<a href="#void" title="details" class="method-name">void</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$trans_id</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#_getPostUrl" title="details" class="method-name">_getPostUrl</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetAIM/AuthorizeNetAIM_Response.html">AuthorizeNetAIM_Response</a></span>
										<a href="#_handleResponse" title="details" class="method-name">_handleResponse</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$response</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_setPostString" title="details" class="method-name">_setPostString</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#__set" title="details" class="method-name">__set</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>)
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
												<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$verify_x_fields" id="$verify_x_fields"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$verify_x_fields</span>
			 = <span class="var-default"> true</span>			(line <span class="line-number">74</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Checks to make sure a field is actually in the API before setting.</p>
<p class="description"><p>Set to false to skip this check.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
							<h4>Inherited Variables</h4>
				<A NAME='inherited_vars'><!-- --></A>
									<p>Inherited from <span class="classname"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html">AuthorizeNetRequest</a></span></p>
					<blockquote>
													<span class="var-title">
								<span class="var-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#var$VERIFY_PEER">AuthorizeNetRequest::$VERIFY_PEER</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#var$_api_login">AuthorizeNetRequest::$_api_login</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#var$_log_file">AuthorizeNetRequest::$_log_file</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#var$_post_string">AuthorizeNetRequest::$_post_string</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#var$_sandbox">AuthorizeNetRequest::$_sandbox</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#var$_transaction_key">AuthorizeNetRequest::$_transaction_key</a></span><br>
							</span>
											</blockquote> 
										
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																			<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
										<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="methodaddLineItem" id="addLineItem"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">addLineItem</span> (line <span class="line-number">266</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Add a line item.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			addLineItem
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$item_id</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$item_name</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$item_description</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$item_quantity</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$item_unit_price</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$item_taxable</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$item_id</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$item_name</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$item_description</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$item_quantity</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$item_unit_price</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$item_taxable</span>			</li>
				</ul>
		
			
	</div>
<a name="methodauthorizeAndCapture" id="authorizeAndCapture"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">authorizeAndCapture</span> (line <span class="line-number">106</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Do an AUTH_CAPTURE transaction.</p>
<p class="description"><p>Required &quot;x_&quot; fields: card_num, exp_date, amount</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetAIM/AuthorizeNetAIM_Response.html">AuthorizeNetAIM_Response</a></span>
		<span class="method-name">
			authorizeAndCapture
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$amount</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$card_num</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$exp_date</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$amount</span><span class="var-description">: The dollar amount to charge</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$card_num</span><span class="var-description">: The credit card number</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$exp_date</span><span class="var-description">: CC expiration date</span>			</li>
				</ul>
		
			
	</div>
<a name="methodauthorizeOnly" id="authorizeOnly"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">authorizeOnly</span> (line <span class="line-number">146</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Do an AUTH_ONLY transaction.</p>
<p class="description"><p>Required &quot;x_&quot; fields: card_num, exp_date, amount</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetAIM/AuthorizeNetAIM_Response.html">AuthorizeNetAIM_Response</a></span>
		<span class="method-name">
			authorizeOnly
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$amount</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$card_num</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$exp_date</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$amount</span><span class="var-description">: The dollar amount to charge</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$card_num</span><span class="var-description">: The credit card number</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$exp_date</span><span class="var-description">: CC expiration date</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcaptureOnly" id="captureOnly"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">captureOnly</span> (line <span class="line-number">184</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Do a CAPTURE_ONLY transaction.</p>
<p class="description"><p>Required &quot;x_&quot; fields: auth_code, amount, card_num , exp_date</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetAIM/AuthorizeNetAIM_Response.html">AuthorizeNetAIM_Response</a></span>
		<span class="method-name">
			captureOnly
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$auth_code</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$amount</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$card_num</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$exp_date</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$auth_code</span><span class="var-description">: The auth code</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$amount</span><span class="var-description">: The dollar amount to charge</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$card_num</span><span class="var-description">: The last 4 of credit card number</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$exp_date</span><span class="var-description">: CC expiration date</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcredit" id="credit"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">credit</span> (line <span class="line-number">205</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Do a CREDIT transaction.</p>
<p class="description"><p>Required &quot;x_&quot; fields: trans_id, amount, card_num (just the last 4)</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetAIM/AuthorizeNetAIM_Response.html">AuthorizeNetAIM_Response</a></span>
		<span class="method-name">
			credit
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$trans_id</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$amount</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$card_num</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$trans_id</span><span class="var-description">: Transaction id to credit</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$amount</span><span class="var-description">: The dollar amount to credit</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$card_num</span><span class="var-description">: The last 4 of credit card number</span>			</li>
				</ul>
		
			
	</div>
<a name="methodpriorAuthCapture" id="priorAuthCapture"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">priorAuthCapture</span> (line <span class="line-number">127</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Do a PRIOR_AUTH_CAPTURE transaction.</p>
<p class="description"><p>Required &quot;x_&quot; field: trans_id(The transaction id of the prior auth, unless split  tender, then set x_split_tender_id manually.)  amount (only if lesser than original auth)</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetAIM/AuthorizeNetAIM_Response.html">AuthorizeNetAIM_Response</a></span>
		<span class="method-name">
			priorAuthCapture
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$trans_id</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$amount</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$trans_id</span><span class="var-description">: Transaction id to charge</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$amount</span><span class="var-description">: Dollar amount to charge if lesser than auth</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetCustomField" id="setCustomField"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setCustomField</span> (line <span class="line-number">323</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Set a custom field. Note: the x_ prefix will not be added to  your custom field if you use this method.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setCustomField
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$value</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetCustomFields" id="setCustomFields"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setCustomFields</span> (line <span class="line-number">248</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Quickly set multiple custom fields.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setCustomFields
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$fields</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$fields</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetECheck" id="setECheck"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setECheck</span> (line <span class="line-number">280</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Use ECHECK as payment type.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setECheck
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$bank_aba_code</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$bank_acct_num</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$bank_acct_type</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$bank_name</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$bank_acct_name</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$echeck_type</span> = <span class="var-default">'WEB'</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$bank_aba_code</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$bank_acct_num</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$bank_acct_type</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$bank_name</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$bank_acct_name</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$echeck_type</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetField" id="setField"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setField</span> (line <span class="line-number">302</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Set an individual name/value pair. This will append x_ to the name  before posting.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setField
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$value</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetFields" id="setFields"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setFields</span> (line <span class="line-number">235</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Quickly set multiple fields.</p>
<p class="description"><p>Note: The prefix x_ will be added to all fields. If you want to set a  custom field without the x_ prefix, use setCustomField or setCustomFields.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setFields
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$fields</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$fields</span><span class="var-description">: Takes an array or object.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodunsetField" id="unsetField"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">unsetField</span> (line <span class="line-number">333</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Unset an x_ field.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			unsetField
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: Field to unset.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodvoid" id="void"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">void</span> (line <span class="line-number">165</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Do a VOID transaction.</p>
<p class="description"><p>Required &quot;x_&quot; field: trans_id(The transaction id of the prior auth, unless split  tender, then set x_split_tender_id manually.)</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetAIM/AuthorizeNetAIM_Response.html">AuthorizeNetAIM_Response</a></span>
		<span class="method-name">
			void
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$trans_id</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$trans_id</span><span class="var-description">: Transaction id to void</span>			</li>
				</ul>
		
			
	</div>
<a name="method_getPostUrl" id="_getPostUrl"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_getPostUrl</span> (line <span class="line-number">353</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			_getPostUrl
		</span>
				()
			</div>
	
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#method_getPostUrl">AuthorizeNetRequest::_getPostUrl()</a></dt>
						<dd>Get the post url. We need this because until 5.3 you  you could not access child constants in a parent class.</dd>
					</dl>
			
	</div>
<a name="method_handleResponse" id="_handleResponse"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_handleResponse</span> (line <span class="line-number">345</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../AuthorizeNet/AuthorizeNetAIM/AuthorizeNetAIM_Response.html">AuthorizeNetAIM_Response</a></span>
		<span class="method-name">
			_handleResponse
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$response</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$response</span>			</li>
				</ul>
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#method_handleResponse">AuthorizeNetRequest::_handleResponse()</a></dt>
						<dd>Handle the response string</dd>
					</dl>
			
	</div>
<a name="method_setPostString" id="_setPostString"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_setPostString</span> (line <span class="line-number">361</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Converts the x_post_fields array into a string suitable for posting.</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_setPostString
		</span>
				()
			</div>
	
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#method_setPostString">AuthorizeNetRequest::_setPostString()</a></dt>
						<dd>Set the _post_string</dd>
					</dl>
			
	</div>
<a name="method__set" id="__set"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">__set</span> (line <span class="line-number">222</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Alternative syntax for setting x_ fields.</p>
<p class="description"><p>Usage: $sale-&gt;method = &quot;echeck&quot;;</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			__set
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$value</span>			</li>
				</ul>
		
			
	</div>
							<h4>Inherited Methods</h4>
				<a name='inherited_methods'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Inherited From <span class="classname"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html">AuthorizeNetRequest</a></span></p>
					<blockquote>
													<span class="method-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#method__construct">AuthorizeNetRequest::__construct()</a></span><br>
													<span class="method-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#methodgetPostString">AuthorizeNetRequest::getPostString()</a></span><br>
													<span class="method-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#methodsetLogFile">AuthorizeNetRequest::setLogFile()</a></span><br>
													<span class="method-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#methodsetSandbox">AuthorizeNetRequest::setSandbox()</a></span><br>
													<span class="method-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#method_getPostUrl">AuthorizeNetRequest::_getPostUrl()</a></span><br>
													<span class="method-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#method_handleResponse">AuthorizeNetRequest::_handleResponse()</a></span><br>
													<span class="method-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#method_sendRequest">AuthorizeNetRequest::_sendRequest()</a></span><br>
													<span class="method-name"><a href="../../AuthorizeNet/AuthorizeNetRequest/AuthorizeNetRequest.html#method_setPostString">AuthorizeNetRequest::_setPostString()</a></span><br>
											</blockquote>
										
		</div>
	</div>

	<a name="sec-consts"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constants</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
						
			
												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
														| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="constLIVE_URL" id="LIVE_URL"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">LIVE_URL</span>
			 = <span class="const-default"> 'https://secure.authorize.net/gateway/transact.dll'</span>
			(line <span class="line-number">45</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
<a name="constSANDBOX_URL" id="SANDBOX_URL"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">SANDBOX_URL</span>
			 = <span class="const-default"> 'https://test.authorize.net/gateway/transact.dll'</span>
			(line <span class="line-number">46</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
						
		</div>
	</div>

	<p class="notes" id="credit">
		Documentation generated on Thu, 21 Oct 2010 17:30:58 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>